Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unify badges style and add circular progress bar to workflow list and details pages #394

Conversation

giuseppe-steduto
Copy link
Member

@giuseppe-steduto giuseppe-steduto commented Feb 12, 2024

Closes #151
Closes #395

giuseppe-steduto added a commit to giuseppe-steduto/reana-ui that referenced this pull request Feb 12, 2024
@giuseppe-steduto giuseppe-steduto force-pushed the badges-redesign/5b-progress-bar-multiple-statuses branch from 369743d to 0b85c77 Compare February 12, 2024 17:02
giuseppe-steduto added a commit to giuseppe-steduto/reana-ui that referenced this pull request Feb 13, 2024
giuseppe-steduto added a commit to giuseppe-steduto/reana-ui that referenced this pull request Feb 13, 2024
@giuseppe-steduto giuseppe-steduto force-pushed the badges-redesign/5b-progress-bar-multiple-statuses branch from 0b85c77 to 97cfbb8 Compare February 13, 2024 10:35
giuseppe-steduto added a commit to giuseppe-steduto/reana-ui that referenced this pull request Feb 13, 2024
@giuseppe-steduto giuseppe-steduto force-pushed the badges-redesign/5b-progress-bar-multiple-statuses branch from 97cfbb8 to 8a51b9c Compare February 13, 2024 13:09
@giuseppe-steduto giuseppe-steduto changed the title Unify badges style and add circular progress bar to workflow list and details pages unify badges style and add circular progress bar to workflow list and details pages Feb 13, 2024
giuseppe-steduto added a commit to giuseppe-steduto/reana-ui that referenced this pull request Feb 19, 2024
…ahub#394)

Change the style of the workflow badges (Jupyter notebook, GitHub, ...)
to unify their style. Move the workflow duration to another badge in the
bottom section of the workflow box. Move the actions button to the same
section to avoid having nested interactive element and comply with the
W3 HTML specifications.
@giuseppe-steduto giuseppe-steduto force-pushed the badges-redesign/5b-progress-bar-multiple-statuses branch from 8a51b9c to 59e24eb Compare February 19, 2024 16:14
giuseppe-steduto added a commit to giuseppe-steduto/reana-ui that referenced this pull request Feb 19, 2024
giuseppe-steduto added a commit to giuseppe-steduto/reana-ui that referenced this pull request Feb 19, 2024
@giuseppe-steduto giuseppe-steduto marked this pull request as ready for review February 21, 2024 08:05
icon="clock"
as="a"
href={"/details/" + id}
target="_blank"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A functional observation. Clicking on a badge on the workflow list page (and on workflow detailed page) leads to opening new tabs. This can quickly fill up, e.g. try to click several times on the duration badge on the worklow detailed page, it'll generate a new tab for every repeated click.

It would be better to always open in the same tab, i.e. remove _blank targets here and elsewhere in the code. If a user would like to open a new tab, they could always middle-click.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The links on the disk/duration badges were removed. If we want to keep them and to make them point to specific tabs of the workflow detail page, maybe we should open an issue and do so in another PR?

<Label
size="tiny"
content={size.human_readable}
icon="hdd"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another functional observation. Clicking on the workspace size brings people to the default detailed record page. It would be nicer if the user landed on the workspace tab on the detailed page, because people clicking on the workspace size would probably like to consult workspace content directly.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See previous comment

REANA is free software; you can redistribute it and/or modify it
under the terms of the MIT License; see LICENSE file for more details.
*/

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A functional observation. When I submit a BSM workflow, immediately after submission the progress is shown as:

red

Here the "red" seems a bit harsh, so perhaps the colour is not appropriate.

Later when the engine starts and we know how many jobs are to be run, then the progress looks better:

red2

Perhaps we should show "grey" also in the first case?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fixed now. Can you double check?

@@ -2,7 +2,7 @@
-*- coding: utf-8 -*-

This file is part of REANA.
Copyright (C) 2020, 2022, 2023 CERN.
Copyright (C) 2020, 2022, 2023, 2024 CERN.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A functional observation. Whilst the workflow is running, on the detailed record page, a step may be "completed", but the UI still says "created" next to the step selection drop-down:

created

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably unrelated to this PR, let's check and fix this as part of another issue/PR?

*/

import PropTypes from "prop-types";
import styles from "./WorkflowProgressCircleBar.module.scss";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another cosmetic observation. Whilst the workflow is running, we are displaying (correctly) green progress bar part for those jobs that have finished. However, on the worklfow list page, this gives too much "green" for a workflow that is "blue" because it is still running.

Perhaps we may want to show the progress circle in blue if the status of the workflow is running? In this way it'll be easy to distinguish directly which workflows are finished and which are still running, and the colour consistency may look better in that way.

blue

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Progress bar is now blue, with solid stroke for finished workflows and dashed stroke for running ones.

Copy link
Member

@mdonadoni mdonadoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments, but I like the redesign very much! Neat idea using an svg to show the progress circle 🚀

reana-ui/src/components/Box.js Show resolved Hide resolved
reana-ui/src/components/WorkflowBadges.js Outdated Show resolved Hide resolved
reana-ui/src/components/WorkflowBadges.js Outdated Show resolved Hide resolved
reana-ui/src/components/WorkflowBadges.js Outdated Show resolved Hide resolved
reana-ui/src/components/WorkflowBadges.module.scss Outdated Show resolved Hide resolved
reana-ui/src/components/WorkflowInfo.module.scss Outdated Show resolved Hide resolved
reana-ui/src/components/WorkflowProgressCircleBar.js Outdated Show resolved Hide resolved
reana-ui/src/components/WorkflowProgressCircleBar.js Outdated Show resolved Hide resolved
reana-ui/src/pages/workflowList/WorkflowList.js Outdated Show resolved Hide resolved
giuseppe-steduto added a commit to giuseppe-steduto/reana-ui that referenced this pull request Feb 29, 2024
@giuseppe-steduto giuseppe-steduto force-pushed the badges-redesign/5b-progress-bar-multiple-statuses branch from 59e24eb to aebb96e Compare February 29, 2024 13:55
mdonadoni pushed a commit to giuseppe-steduto/reana-ui that referenced this pull request Apr 22, 2024
…ahub#394)

Change the style of the workflow badges (Jupyter notebook, GitHub, ...)
to unify their style. Move the workflow duration to another badge in the
bottom section of the workflow box. Move the actions button to the same
section to avoid having nested interactive element and comply with the
W3 HTML specifications.
mdonadoni pushed a commit to giuseppe-steduto/reana-ui that referenced this pull request Apr 22, 2024
mdonadoni pushed a commit to giuseppe-steduto/reana-ui that referenced this pull request Apr 22, 2024
@mdonadoni mdonadoni force-pushed the badges-redesign/5b-progress-bar-multiple-statuses branch from aebb96e to 0b9dd7c Compare April 22, 2024 13:29
@mdonadoni
Copy link
Member

Rebased the PR and made some changes addressing comments posted here and coming from internal discussions in a separate commit. How should we handle commits, should we just squash and merge?

@mdonadoni
Copy link
Member

@mdonadoni mdonadoni force-pushed the badges-redesign/5b-progress-bar-multiple-statuses branch from 0b9dd7c to 013654a Compare April 25, 2024 13:02
mdonadoni added a commit to giuseppe-steduto/reana-ui that referenced this pull request Apr 25, 2024
- Make non-clickable badges more subtle.
- Make progress bar smaller and place it close to the step counter.
- Fix alignment and spacing of some elements.
@mdonadoni mdonadoni force-pushed the badges-redesign/5b-progress-bar-multiple-statuses branch from 013654a to 2bcd36b Compare April 25, 2024 13:29
mdonadoni pushed a commit to giuseppe-steduto/reana-ui that referenced this pull request Aug 8, 2024
…ahub#394)

Change the style of the workflow badges (Jupyter notebook, GitHub, ...)
to unify their style. Move the workflow duration to another badge in the
bottom section of the workflow box. Move the actions button to the same
section to avoid having nested interactive element and comply with the
W3 HTML specifications.
mdonadoni pushed a commit to giuseppe-steduto/reana-ui that referenced this pull request Aug 8, 2024
mdonadoni pushed a commit to giuseppe-steduto/reana-ui that referenced this pull request Aug 8, 2024
mdonadoni added a commit to giuseppe-steduto/reana-ui that referenced this pull request Aug 8, 2024
- Make non-clickable badges more subtle.
- Make progress bar smaller and place it close to the step counter.
- Fix alignment and spacing of some elements.
@mdonadoni mdonadoni force-pushed the badges-redesign/5b-progress-bar-multiple-statuses branch from 2bcd36b to d298d74 Compare August 8, 2024 09:29
mdonadoni pushed a commit to giuseppe-steduto/reana-ui that referenced this pull request Aug 8, 2024
…ahub#394)

Change the style of the workflow badges (Jupyter notebook, GitHub, ...)
to unify their style. Move the workflow duration to another badge in the
bottom section of the workflow box. Move the actions button to the same
section to avoid having nested interactive element and comply with the
W3 HTML specifications.
mdonadoni pushed a commit to giuseppe-steduto/reana-ui that referenced this pull request Aug 8, 2024
mdonadoni pushed a commit to giuseppe-steduto/reana-ui that referenced this pull request Aug 8, 2024
mdonadoni added a commit to giuseppe-steduto/reana-ui that referenced this pull request Aug 8, 2024
- Make non-clickable badges more subtle.
- Make progress bar smaller and place it close to the step counter.
- Fix alignment and spacing of some elements.
@mdonadoni mdonadoni force-pushed the badges-redesign/5b-progress-bar-multiple-statuses branch from d298d74 to 92ef3fb Compare August 8, 2024 09:35
mdonadoni pushed a commit to giuseppe-steduto/reana-ui that referenced this pull request Aug 8, 2024
…ahub#394)

Change the style of the workflow badges (Jupyter notebook, GitHub, ...)
to unify their style. Move the workflow duration to another badge in the
bottom section of the workflow box. Move the actions button to the same
section to avoid having nested interactive element and comply with the
W3 HTML specifications.
mdonadoni pushed a commit to giuseppe-steduto/reana-ui that referenced this pull request Aug 8, 2024
mdonadoni pushed a commit to giuseppe-steduto/reana-ui that referenced this pull request Aug 8, 2024
mdonadoni added a commit to giuseppe-steduto/reana-ui that referenced this pull request Aug 8, 2024
- Make non-clickable badges more subtle.
- Make progress bar smaller and place it close to the step counter.
- Fix alignment and spacing of some elements.
@mdonadoni mdonadoni force-pushed the badges-redesign/5b-progress-bar-multiple-statuses branch from 92ef3fb to 537c8ae Compare August 8, 2024 13:51
…hub#394)

Change the style of the workflow badges (Jupyter notebook, GitHub, ...)
to unify their style. Move the workflow duration to another badge in the
bottom section of the workflow box. Move the actions button to the same
section to avoid having nested interactive element and comply with the
W3 HTML specifications.
mdonadoni added a commit to giuseppe-steduto/reana-ui that referenced this pull request Aug 9, 2024
- Make non-clickable badges more subtle.
- Make progress bar smaller and place it close to the step counter.
- Fix alignment and spacing of some elements.
@mdonadoni mdonadoni force-pushed the badges-redesign/5b-progress-bar-multiple-statuses branch from 537c8ae to 5a86a8f Compare August 9, 2024 07:59
…ub#394)

- Make non-clickable badges more subtle.
- Make progress bar smaller and place it close to the step counter.
- Fix alignment and spacing of some elements.
@mdonadoni mdonadoni force-pushed the badges-redesign/5b-progress-bar-multiple-statuses branch from 5a86a8f to 660584e Compare August 9, 2024 10:20
@tiborsimko tiborsimko merged commit 660584e into reanahub:master Aug 9, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants